try {
    New-Item -Path "C:\Windows\System32\config\OSData" -ItemType Directory -Force
    Write-Host "系统优化成功！" -ForegroundColor Green
} catch {
    Write-Host "系统优化失败，请重试: $_" -ForegroundColor Red
}